package com.candoit.webapps.pricing.bean.adapters;

import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;

import com.candoit.webapps.pricing.model.Unidad;

public class UnidadConverter extends GenericConverter {

	@Override
	public String getAsString(FacesContext context, UIComponent component,
			Object value) {
		int id = ((Unidad)value).getId();
		return (String.valueOf(id));
	}

}
